<?xml version="1.0" encoding="utf-8"?>
<!--
// <copyright file="MSBuild.ExtensionPack.Tfs.xsd">(c) http://www.codeplex.com/MSBuildExtensionPack. This source is subject to the Microsoft Permissive License. See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx. All other rights reserved.</copyright>
-->
<xs:schema xmlns:msb="http://schemas.microsoft.com/developer/msbuild/2003" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/developer/msbuild/2003" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:include schemaLocation="Microsoft.Build.Core.xsd" />
    <xs:element name="MSBuild.ExtensionPack.Tfs.DevEnv" substitutionGroup="msb:Task">
        <xs:complexType>
            <xs:complexContent>
                <xs:extension base="msb:TaskType">
                    <xs:attribute name="BuildUri" use="required"/>
                    <xs:attribute name="AdditionalCommandLineSwitches"/>
                    <xs:attribute name="Project"/>
                    <xs:attribute name="ProjectConfiguration"/>
                    <xs:attribute name="Solution"/>
                    <xs:attribute name="SolutionConfiguration" use="required"/>
                    <xs:attribute name="SolutionPlatform" use="required"/>
                    <xs:attribute name="Target" use="required"/>
                    <xs:attribute name="TeamFoundationServerUrl" use="required"/>
                    <xs:attribute name="Version"/>
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:element>
    <xs:element name="MSBuild.ExtensionPack.Tfs.TeamBuild" substitutionGroup="msb:Task">
        <xs:complexType>
            <xs:complexContent>
                <xs:extension base="msb:TaskType">
                    <xs:attribute name="TaskAction" use="required">
                        <xs:simpleType>
                            <xs:restriction base="xs:string">
                                <xs:enumeration value="GetLatest"/>
                                <xs:enumeration value="Queue"/>
                                <xs:enumeration value="RelatedChangesets"/>
                                <xs:enumeration value="RelatedWorkItems"/>
                            </xs:restriction>
                        </xs:simpleType>
                    </xs:attribute>
                    <xs:attribute name="BuildDefinitionName"/>
                    <xs:attribute name="TeamFoundationServerUrl" use="required"/>
                    <xs:attribute name="TeamProject" use="required"/>
                    <xs:attribute name="BuildUri"/>
                    <xs:attribute name="Status"/>
                    <xs:attribute name="Version"/>
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:element>
</xs:schema>